/*
 * @ Created with Clion
 * @ Author Morbid
 * @ Date 2022/07/25
 * @ Time 11:36
 */

#include <cstdio>
#include "LiStack.h"

int main() {
    ListStack S;
    InitStack(S);
    Push(S, 1);
    Push(S, 23);
    int top;
    GetTop(S, top);
    printf("Stack Top:%d\n", top);
    int x;
    Pop(S, x);
    printf("Pop:%d\n", x);
    Pop(S, x);
    printf("Pop:%d\n", x);
    if (StackEmpty(S))
        printf("栈空！");
    return 0;
}